﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace SlaktDataReader
{
    public class Globals
    {
        private static string BaseDir = AppDomain.CurrentDomain.BaseDirectory;
        private static string iniFile = BaseDir + "app.ini";

        public static ObservableCollection<Location> Locations { get; set; }
        public static ObservableCollection<Book> Books { get; set; }

        public static bool DownloadBooks { get; set; }
        public static bool CopyLocal { get; set; }
        public static string BookDownloadPath { get; set; }

        public static string UserName { get; set; }

        public static void SetDefaultValues()
        {
            DownloadBooks = true;
            BookDownloadPath = BaseDir + "Books";
        }

        public static void SaveIni()
        {
        }

        public static void LoadIni()
        {
        }

        public static bool DownloadBook(string URL)
        {
            if (BookDownloadPath != "")
            {
                
            }
            return true;
        }

    }
}
